package com.lyl.momanapp.activity.help;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.lyl.momanapp.R;
import com.lyl.momanapp.activity.MainActivity;
import com.lyl.momanapp.util.view.MyBaseActivity;

/**
 * 名字 梁亚龙
 * 时间 2017/12/5.
 * QQ邮箱 503934353@qq.com
 */

public class Help22Activity extends MyBaseActivity {
    private TextView mTV;
    private  String sname="如何编辑个人资料";
    private String s= "在【个人中心】中点击头像一栏，进入个人资料，可进行头像、昵称、性别等信息的编辑";
    private TextView mName;


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.fanhui: {
                finish();
            }
            break;
            case R.id.zhuye: {

                startActivity(new Intent(Help22Activity.this, MainActivity.class));

            }
            break;
        }
    }

    @Override
    public void initUI() {
        setContentView(R.layout.activity_help_1_1);
        mTV = ((TextView) findViewById(R.id.help_1_1_tv));
        mName = ((TextView) findViewById(R.id.help_1_1_tvname));
    }

    @Override
    public void initData() {
        mTV.setText(s);
        mName.setText(sname);
    }

    @Override
    public void addListeners() {
        findViewById(R.id.fanhui).setOnClickListener(this);
        findViewById(R.id.zhuye).setOnClickListener(this);
    }
}
